package com.voxel.sense.infomsg.interfaces.listener;

import com.lzy.okgo.model.Progress;
import com.lzy.okserver.ProgressListener;
import com.lzy.okserver.upload.UploadTask;

/**
 * Created by ChenYiYao on 2017/12/21.
 */

public abstract class UploadListenerImp<T> implements ProgressListener<T> {
    UploadTask mTask;

    public void setTask(UploadTask task) {
        mTask = task;
    }

    public UploadTask getTask() {
        return mTask;
    }

    public UploadListenerImp() {
        init();
    }

     public void init(){

     }

    @Override
    public void onStart(Progress progress) {

    }

    @Override
    public void onError(Progress progress) {

    }

    @Override
    public void onRemove(Progress progress) {

    }

    @Override
    public void onFinish(T t, Progress progress) {

    }

    @Override
    public void onProgress(Progress progress) {

    }
}
